package com.hzqy.service.itf;


import com.hzqy.persistence.dao.itf.PensionUserDao;
import com.hzqy.web.vo.industry.pension.GoodsVo;
import com.hzqy.web.vo.industry.pension.OrderVo;
import com.hzqy.web.vo.industry.pension.PensionUserVo;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class PensionUserServiceBean {
    //private static final long serialVersionUID = 1L;
    protected final Logger LOG = LoggerFactory.getLogger(getClass());
    @Resource
    private PensionUserDao pensionUserDao ;

    public List<PensionUserVo> getUserInfo(PensionUserVo pensionUserVo){
        List<PensionUserVo> userInfo = pensionUserDao.getUserInfo(pensionUserVo);
        return userInfo;
    }

    public Integer updateUserTimes(String id){
        Integer count = pensionUserDao.updateUserTimes(id);
        return count;
    }

    public Integer addUserTimes(String name){
        Integer count = pensionUserDao.addUserTimes(name);
        return count;
    }

    public String selectGoods(String name){
        return pensionUserDao.selectGoods(name);
    }
    public List<GoodsVo> goodsList(GoodsVo vo){
        return pensionUserDao.goodsList(vo);
    }

    public List<OrderVo> getOrderInfo(OrderVo orderVo){
        List<OrderVo> orderInfo = pensionUserDao.getOrderInfo(orderVo);
        return orderInfo;
    }


    public int addOrder(OrderVo orderVo){
        return pensionUserDao.addOrder(orderVo);
    }
    public Integer updateOrderStatus(String serverId,int status ){
        Integer count = pensionUserDao.updateOrderStatus(serverId,status);
        return count;
    }

}
